home *** CD-ROM | disk | FTP | other *** search
- Path: sun001.spd.dsccc.com!spd!jmccarty
- From: jmccarty@spd.dsccc.com (Mike McCarty)
- Newsgroups: comp.arch.arithmetic,comp.lang.c,comp.lang.c++
- Subject: Re: Access carry flag from C
- Date: 22 Feb 1996 19:55:04 GMT
- Organization: DSC Communications Corporation, Plano, Texas USA
- Message-ID: <4gihmo$2v1@sun001.spd.dsccc.com>
- References: <Dn1C9z.DGv.0.net@indra.com>
- NNTP-Posting-Host: aplo139.spd.dsccc.com
-
- In article <Dn1C9z.DGv.0.net@indra.com>,
- Steve Sullivan <sullivan@indra.com> wrote:
- )Is it possible to determine if a fixed point overflow has
- )occurred from within C? For example:
- ) i = j + k;
- ) if (overflowed) ....;
- )
- )Many thanks for any suggestions -
- )
- )Steve Sullivan
-
- Yes, it is possible. It is not fast, nor is it portable between
- machines.
-
- Mike
-
- ----
- char *p="char *p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}
-
- I don't speak for DSC. <- They make me say that.
-